package com.google.android.exoplayer2.metadata.id3;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import androidx.annotation.Nullable;
import java.util.Arrays;
import o.anr;

public final class ChapterFrame extends Id3Frame {
    public static final Creator<ChapterFrame> CREATOR = new Creator<ChapterFrame>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return ˏ(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return ॱ(i);
        }

        public ChapterFrame ˏ(Parcel parcel) {
            return new ChapterFrame(parcel);
        }

        public ChapterFrame[] ॱ(int i) {
            return new ChapterFrame[i];
        }
    };
    private final Id3Frame[] ʽ;
    public final long ˊ;
    public final int ˋ;
    public final long ˎ;
    public final String ˏ;
    public final int ॱ;

    public ChapterFrame(String str, int i, int i2, long j, long j2, Id3Frame[] id3FrameArr) {
        super("CHAP");
        this.ˏ = str;
        this.ˋ = i;
        this.ॱ = i2;
        this.ˊ = j;
        this.ˎ = j2;
        this.ʽ = id3FrameArr;
    }

    ChapterFrame(Parcel parcel) {
        super("CHAP");
        this.ˏ = (String) anr.ˎ(parcel.readString());
        this.ˋ = parcel.readInt();
        this.ॱ = parcel.readInt();
        this.ˊ = parcel.readLong();
        this.ˎ = parcel.readLong();
        int readInt = parcel.readInt();
        this.ʽ = new Id3Frame[readInt];
        for (int i = 0; i < readInt; i++) {
            this.ʽ[i] = (Id3Frame) parcel.readParcelable(Id3Frame.class.getClassLoader());
        }
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        ChapterFrame chapterFrame = (ChapterFrame) obj;
        if (this.ˋ == chapterFrame.ˋ && this.ॱ == chapterFrame.ॱ && this.ˊ == chapterFrame.ˊ && this.ˎ == chapterFrame.ˎ && anr.ˎ(this.ˏ, chapterFrame.ˏ) && Arrays.equals(this.ʽ, chapterFrame.ʽ)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return (this.ˏ != null ? this.ˏ.hashCode() : 0) + ((((((((this.ˋ + 527) * 31) + this.ॱ) * 31) + ((int) this.ˊ)) * 31) + ((int) this.ˎ)) * 31);
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.ˏ);
        parcel.writeInt(this.ˋ);
        parcel.writeInt(this.ॱ);
        parcel.writeLong(this.ˊ);
        parcel.writeLong(this.ˎ);
        parcel.writeInt(this.ʽ.length);
        for (Parcelable writeParcelable : this.ʽ) {
            parcel.writeParcelable(writeParcelable, 0);
        }
    }

    public int describeContents() {
        return 0;
    }
}
